﻿@using EraNet.Core;
@using EraNet.Core.Model.Test;
@using EraNet.Core.Model.Account;
@using EraNet.Core.Model.Messages;
@using EraNet.Core.Model.SysManage;
@using EraNet.Common;
@{
    Layout = "~/Areas/LMS/Views/Shared/_LayOut.cshtml";
    var m = (Member)ViewBag.Member;
    var mr=(IPagedList<ExaminationLogs>)ViewBag.Exam;
    var notice = (IPagedList<Notices>)ViewBag.Notice;
    var fb = (IPagedList<Feedback>)ViewBag.feedback;
    var card =(SysCards)ViewBag.sysCard;
    ViewBag.OptionTitle = "首页";
}
@section javascript
{
}
<div class="wrapper">
<!-- Left column/section -->
<div class="column width6 first" style="display:inline">
<div class="colgroup leading">
<div class="column width3 first">
<h3>欢迎回来, <a href="#">@m.AccountName</a></h3>
<p>
祝您顺利通过考试！ <b></b>今天也要加油噢！<br /><a href="">视频学习</a>&nbsp;&nbsp;<a href="#">模拟练习</a>
</p>
</div>
<div class="column width3">
<h4>安全信息</h4>
<p>
您最后一次登陆是在 @m.LastLoginDate <br />IP地址: @m.LastIPAddress <br />
如果不是本人登陆，请及时更改密码.
</p>
</div>
</div>

<div class="colgroup leading">
<div class="column width3 height3 first">
<h4>考试记录: <a href="#">@mr.TotalCount</a></h4>
<hr/>
<table class="no-style full ">
<tbody>
@foreach (var m1 in mr)
{
<tr>
<td>@m1.ExaminationType</td>
<td class="ta-right"><a href="#">@m1.CreateDate</a></td>
<td class="ta-right">@m1.Score</td>
</tr>
}    
</tbody>
</table>
</div>
<div class="column width3 height3">
<h4>问题回复: <a href="#">@fb.TotalCount</a></h4>
<hr/>
<table class="no-style full">
<tbody>
@foreach (var fb1 in fb)
{
<tr>
<td>@fb1.Titles</td>
<td class="ta-right">@fb1.CreateTime</td>
<td class="ta-right">@Html.Raw(fb1.Status==0?"处理中":fb1.Status==1?"已回复":"已完结")</td>
</tr>
}
</tbody>
</table>
</div>
</div>
				
<div class="colgroup leading">
<div class="column width3 first">
<h4>学时记录: <a href="#">0</a></h4>
<hr/>
<table class="no-style full">
<tbody>
<tr>
<td>暂未开放</td>
<td class="ta-right">0/0</td>
<td><div id="progress1" class="progress full progress-green"><span><b></b></span></div></td>
</tr>

</tbody>
</table>
</div>
<div class="column width3">
<h4>网上约车</h4>
<hr/>
<p><b>暂未开放</b></p>
<div id="placeholder" style="height:100px"></div>
</div>
</div>
</div>
<div class="column width2" style="display:inline">
<div id="rightmenu">
<header>
<h3>账户信息</h3>
</header>
<dl class="first">
<dt><img width="16" height="16" alt="" SRC="@Url.Content("~/Styles/img/key.png")"></dt>
<dd><a href="#">用户名：</a></dd>
<dd class="last">@m.AccountName</dd>
<dt><img width="16" height="16" alt="" SRC="@Url.Content("~/Styles/img/key.png")"></dt>
<dd><a href="#">学习卡号</a></dd>
<dd class="last">@card.Markstr@card.CardNo</dd>
</dl>
</div>
<div class="content-box">
<div>
<h3>最新公告</h3>
</div>
<table>
@foreach (var n1 in notice)
{
<tr>
<td width="150px"><a href="/Messages/NoticesInfo?noticeId=@n1.Id">@(Utility.GetSubString(n1.ShortTitle,15,"..."))</a></td>
<td style="text-align:right">@n1.CreateDate.ToString("yyyy-MM-dd")</td>
</tr>
}
@if (notice.Count > 0)
{
<tr>
    <td colspan="2" align="right" ><a href="/Messages/Notices">更多</a></td>
</tr>
}
else
{
    for (int i = 0; i <= 5; i++)
    {
         <tr>
              <td>&nbsp;</td>
        </tr>
    } 
}
</table>
</div>
</div>
</div>